<template>
    <div>
        UserList组件 New 123999
    </div>

</template>

<script>
export default {
    name: 'UserList',
    data() {
        return {
            userList:[]
        }
    },
    created() {
        this.getUserList()        
        
    },
    methods: {
        //获取用户列表的数据
       async getUserList() {
            const { data: res } = await this.$http.get('/api/users')
            if (res.status !== 0) return console.log('用户类别数据获取失败！')
            this.userList = res.data
        }
    }
}
</script>

<style scoped lang="less">

</style>

